package com.tunxing.行为型.策略设计模式;

public class Context {

    private PaymentStrategy paymentStrategy;

    public Context(PaymentStrategy paymentStrategy) {
        this.paymentStrategy = paymentStrategy;
    }

    public void pay() {
        paymentStrategy.pay();
    }
}
